SelectedIndex Property (ComboBoxBase<T>)
In This Topic
Gets or sets the index of the currently selected item in the drop-down list.
Syntax
'Declaration
<System.ComponentModel.DefaultValueAttribute(-1)>
Public Overridable Property SelectedIndex As System.Integer
'Usage
Dim instance As ComboBoxBase(Of T)
Dim value As System.Integer
instance.SelectedIndex = value
value = instance.SelectedIndex
[System.ComponentModel.DefaultValue(-1)]
public virtual System.int SelectedIndex {get; set;}
public read-write property SelectedIndex: System.Integer; virtual;
System.ComponentModel.DefaultValueAttribute(-1)
public function get,set SelectedIndex : System.int
[System.ComponentModel.DefaultValue(-1)]
public: __property virtual System.int get_SelectedIndex();
public: __property virtual void set_SelectedIndex(
System.int value
);
[System.ComponentModel.DefaultValue(-1)]
public:
virtual property System.int SelectedIndex {
System.int get();
void set ( System.int value);
}
See Also